package cn.net.zidian.api;

import java.util.List;
import java.util.Map;

import cn.net.zidian.bean.AstroBean;
import cn.net.zidian.bean.AstroDetailsBean;
import cn.net.zidian.bean.CiDianBean;
import cn.net.zidian.bean.IPBean;
import cn.net.zidian.bean.IdCardBean;
import cn.net.zidian.bean.ResultBean;
import cn.net.zidian.bean.ShouJiBean;
import cn.net.zidian.bean.TodayBean;
import io.reactivex.rxjava3.core.Observable;
import retrofit2.http.GET;
import retrofit2.http.QueryMap;

/**
 * 接口
 */
public interface ApiService {

    @GET("shouji/query")
    Observable<ResultBean<ShouJiBean>> searchPhone(@QueryMap Map<String, String> map);

    @GET("ip/location")
    Observable<ResultBean<IPBean>> searchIP(@QueryMap Map<String, String> map);

    @GET("idcard/query")
    Observable<ResultBean<IdCardBean>> searchIdCard(@QueryMap Map<String, String> map);

    @GET("astro/all")
    Observable<ResultBean<List<AstroBean>>> getAstroAll(@QueryMap Map<String, String> map);

    @GET("astro/fortune")
    Observable<ResultBean<AstroDetailsBean>> getAstroDetails(@QueryMap Map<String, String> map);

    @GET("todayhistory/query")
    Observable<ResultBean<List<TodayBean>>> getTodayHistory(@QueryMap Map<String, String> map);

    @GET("cidian/word")
    Observable<ResultBean<CiDianBean>> getCiDian(@QueryMap Map<String, String> map);
}
